<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-realname" class="control-label col-xs-12 col-sm-2">姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-realname" data-rule="required" class="form-control" name="row[realname]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">手机号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" type="number" data-rule="required" class="form-control" name="row[mobile]">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">性别:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[gender]-0"><input id="row[gender]-0" data-rule="required" name="row[gender]"
                                                  type="radio" value="1" checked/> 男</label>
                <label for="row[gender]-1"><input id="row[gender]-1" data-rule="required" name="row[gender]"
                                                  type="radio" value="2"/> 女</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-admin_id" class="control-label col-xs-12 col-sm-2">学校名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" data-source="classes/school/index" data-field="school_name"
                   data-primary-key="admin_id" data-value="admin_id" class="form-control selectpage"
                   name="row[admin_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classes_id" class="control-label col-xs-12 col-sm-2">班级:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classes_id" data-rule="required" data-source="classes/classes/index"
                   data-params='{"custom[status]":"normal"}' data-field="title" class="form-control selectpage"
                   name="row[classes_id]" type="text" value="">
        </div>
    </div>
 <!--   <div class="form-group">
        <label for="c-subject_id" class="control-label col-xs-12 col-sm-2">任教科目:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-subject_id" data-rule="required" data-source="classes/subjects/index"
                   data-query-name="classes_id" data-params='{"custom[status]":"1","custom[classes_id]":"0"}'
                   data-field="title" class="form-control selectpage" name="row[subject_id]" type="text" value="">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">班主任:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[iscaptain]-0"><input id="row[iscaptain]-0" name="row[iscaptain]" type="radio"
                                                     value="0"/> 否</label>
                <label for="row[iscaptain]-1"><input id="row[iscaptain]-1" name="row[iscaptain]" type="radio" checked
                                                     value="1"/> 是</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">头像:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="row[avatar]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload"
                                  data-input-id="c-avatar"
                                  data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                  data-multiple="false" data-preview-id="p-image"><i
                            class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-admin-id=""
                                  data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i
                            class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>
</form>